package com.shanshan.system.service;

import com.shanshan.system.entity.News;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shanshan.system.vo.Result;
import com.shanshan.system.vo.SearchContent;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author shanshan
 * @since 2023-01-31
 */
public interface INewsService extends IService<News> {


    Result addNews(News news);

    Result selectAll(int currentPage, int pageSize, SearchContent searchContent);

    Result refuse(News news);

    Result agree(Integer id);

    Result upUpdate(int id, int status);

    Result topUpdate(int id, int uppid);

    Result findAllKind1();

    Result findAllKind2();

    Result findAllKind1ById(Integer id);

    Result findAllKind2ById(Integer id);
}
